package com.ktmall.ktmalluijava.service.impl;

import com.ktmall.ktmalluijava.mapper.UserMapper;
import com.ktmall.ktmalluijava.pojo.User;
import com.ktmall.ktmalluijava.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author ZhouShuang
 * @version 17
 * @Title
 * @date 2025/5/23 下午3:45
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;
    /**
     * 根据用户名和密码查询用户
     *
     * @param userName
     * @param password
     * @return
     */
    @Override
    public User getUserByNameAndPassword(String userName, String password) {
            return userMapper.getUserByNameAndPassword(userName, password);
    }
}
